import { getAll } from "@/api/system/user";

var userData = [{}]

const statusData = [
  { value: 0, label: "缺勤" },
  { value: 1, label: "正常" },
  { value: 2, label: "迟到" },
  { value: 3, label: "早退" },
  { value: 4, label: "请假" },
];

getAll().then((res) => {
  userData = res.data.map((e: any) => {
    return {
      value: e.userName,
      label: e.userTrueName,
    };
  });
});
export { userData, statusData };
